<?php
/**
 * 入驻申请SERVICE
 *
 * User: kaikaic
 * Date: 2018/4/12
 * Time: 17:52
 */

namespace app\psy\service;

use service\BasicService;
use think\Db;

class ApplyService extends BasicService {

    public function init() {
        $this->dataTable = ['PsyApply'];
    }

    /**
     * 申请记录是否存在
     */
    public function isApplyExist($mobile) {
        $condition = array();
        $condition['mobile'] = $mobile;
        $condition['status'] = 1;

        return $this->single($condition);
    }

}
